﻿using System;

namespace SAS.WebSite.VisualControls.Other
{
    public partial class LogoutMessage : System.Web.UI.UserControl
    {
        private string LogoutCode;
        protected void Page_Load(object sender, EventArgs e)
        {
            LogoutCode = Request.QueryString["Logout"];
            ProcessCode();
        }
        private void ProcessCode()
        {
            switch (LogoutCode)
            {
                case "true":
                    litLOMessage.Text = "<h1>You have successfully logged out</h1>";
                    break;
                default:
                    litLOMessage.Text = "<h1>Session Time-out.</h1>You have been automatically logged out of your account due to prolonged inactivity.  Please log in to continue.";
                    break;
            }
        }

    }
}